package com.atguigu.proxy.staticproxy;

public class TeacherDaoProxy implements ITeacherDao{
    private ITeacherDao teacherDao;

    public TeacherDaoProxy(ITeacherDao teacherDao){
        this.teacherDao = teacherDao;
    }
    @Override
    public void teach() {
        System.out.println("静态代理");
        teacherDao.teach();
        System.out.println("代理结束");

    }
}
